package com.jsj.service;

import com.jsj.dao.StuClassDao;
import com.jsj.domain.StuClass;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuClassService {
    private StuClassDao stuClassDao;

    @Autowired
    public void setStuClassDao(StuClassDao stuClassDao) {
        this.stuClassDao = stuClassDao;
    }

    public Integer insert(StuClass stuClass) {
        return stuClassDao.insert(stuClass);
    }
    public List<StuClass> queryByName(String name) {
        return stuClassDao.queryByName(name);
    }
}
